﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VersionComparer.DataModel
{
    [Serializable]
    public class ItemId
    {
        public ItemId()
        {
        }
        public bool IsEmpty
        {
            get
            {
                return String.IsNullOrEmpty(Name);
            }
        }
        public ItemId(string name)
        {
            Name = name;
            Id = Guid.NewGuid();
        }
        public string Name
        {
            get;
            set;
        }
        public Guid Id
        {
            get;
            set;
        }

        public string Type
        {
            get;
            set;
        }
        public static ItemId CreateEmpty()
        {
            return new ItemId("");
        }
    }
}
